<?php
include_once "db.php";
include_once "checksession.php";
include_once "auth_permissions.php"; 
authorize("user");

$problem = mysql_query("select * from problem_type WHERE problem_type.status = '0'");

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Add a Phone Call Ticket</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="meta-style.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
</head>

<body>

<?php
include_once "topnav.php";
// auto fill out area of the form that were enterend in if phonecall came back an error
if (isset($_GET['notes']) && $_GET['notes'] != 'error') $notes = $_GET['notes'] ? $_GET['notes'] : null;

?>

<FORM action="insert_phone.php" METHOD="POST">
	<input type="hidden" name="HDuserID" value="<? echo $_SESSION['ID'] ?>">
	
	<input type="hidden" name="problem_type" value="41">
	<input type="hidden" name="Problem" value="Transfer to another department">
	<input type="hidden" name="transfered"   value="true">
	<input type="hidden" name="high_level" value="0">
	<input type="hidden" name="call_closed" value="2">
	<?
 if ($_GET['error']) {
  
  if($_GET['transfered'] == "error") {
   print "<p class='error'>Please check a box.</p>";
  } 
  
 }
?>
   <table width="800" BORDER=1 cellpadding=5 cellspacing=0 bordercolor="#006699" background="#CCCCCC" align="center">
    <tr align="left" valign="top">
      <td colspan="2" bordercolor="#006699" bgcolor="#006699"><font color="white"><span class="style1">Add a new Transfer ticket</span></td>
    </tr>
	<tr>
	<td colspan="2"><font color="red">* = Required</font></td>
	</tr>
     <tr valign="top">
	<td align="right" class="normalblue">	<font color="red">*</font><strong>Transferred?</strong> </td>
		<td align="left" class="normalblue">
        <select name="transfer_to">
        <option value=""></option>
        <option value="admissions">Admissions</option>
        <option value="admissions sup">Admissions Supervisor</option>
        <option value="counseling">Counseling</option>
        <option value="cashiers">Cashiers</option>
        <option value="financial aid">Financial Aid</option>
         <option value="faculty Staff HD">Faculty Staff HD</option>
         <option value="other">Other Ext. (please specify)</option>
			</select>
					</td>
     <tr valign="top">
       <td align="right" class="normalblue"><strong>Notes / If other where did you transfer to? </strong></td>
       <td align="left"><span class="normalblue">
          <textarea name="notes" cols=40 rows=5 wrap="soft" id="notes"><?php echo $notes; ?></textarea>
       </span></td>
     </tr>
     <tr>
     	<td align="right" class="normalblue">Contact Type</td>
        <td align="left">
   			<input type="radio" name="contact_type" value="phone" checked>Phone
			<input type="radio" name="contact_type" value="email">Email
			<input type="radio" name="contact_type" value="in-person">In-Person
			<input type="radio" name="contact_type" value="voicemail">Voicemail
         </td>
     <tr>
     <tr valign="top">
       <td width="50%" align="right" class="normalblue">&nbsp;</td>
       <td width="50%" align="left"><span class="normalblue">
         <input type=SUBMIT value="Submit Call" name="SUBMIT">
       </span></td>
     </tr>
  </table>
</FORM>

   
</body>
</html>
